export default function useSortData() {
  const addDialogRef = ref()
  const delDialogRef = ref()
  // 添加
  const addFn = () => {
    console.log('添加')
    addDialogRef.value.show()
  }
  // 删除
  const delFn = row => {
    console.log('删除', row)
    delDialogRef.value.show(row.id)
  }

  return {
    addDialogRef,
    delDialogRef,
    addFn,
    delFn   
  }
}